package com.gzist.zzchatroomserver.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gzist.zzchatroomserver.common.base.BaseDO;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 消息表
 * @author hzj
 * @since 2025-01-07
 */
@Getter
@Setter
@TableName("sys_message")
@ApiModel(value = "Message对象", description = "")
public class Message extends BaseDO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("发送者ID")
    private String senderId;

    @ApiModelProperty("接收者类型（1: 单聊, 2: 群聊）")
    private Integer receiverType;

    @ApiModelProperty("接收者ID")
    private String receiverId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息发送时间戳")
    private LocalDateTime timestamp;


}
